package systems.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Humberto Anjos
	 */
	public class BulletEvent extends Event 
	{
		public static const BULLET_CREATED:String = "systems.events.BulletEvent:BULLET_CREATED"
		public static const BULLET_DESTROYED:String = "systems.events.BulletEvent:BULLET_DESTROYED"
		
		private var _bullet:Bullet
		
		public function BulletEvent(type:String, bullet:Bullet, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			
			_bullet = bullet
		} 
		
		public override function clone():Event 
		{ 
			return new BulletEvent(type, bullet, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("BulletEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get bullet():Bullet { return _bullet }
	}
	
}